import request from '@/utils/request'

// 查询升级策略设备关联列表
export function listTopo(query) {
  return request({
    url: '/upgrade/topo/list',
    method: 'get',
    params: query
  })
}

// 查询升级策略设备关联详细
export function getTopo(strategyId) {
  return request({
    url: '/upgrade/topo/' + strategyId,
    method: 'get'
  })
}

// 新增升级策略设备关联
export function addTopo(data) {
  return request({
    url: '/upgrade/topo',
    method: 'post',
    data: data
  })
}

// 修改升级策略设备关联
export function updateTopo(data) {
  return request({
    url: '/upgrade/topo',
    method: 'put',
    data: data
  })
}

// 删除升级策略设备关联
export function delTopo(strategyId) {
  return request({
    url: '/upgrade/topo/' + strategyId,
    method: 'delete'
  })
}
